<?php

declare (strict_types = 1);

namespace app\controller;

use app\BaseController;
use own\helps\ImportExcelTool;

class Index extends BaseController
{
    public function index()
    {
        $str = '欢迎使用TpScui管理系统';
        
        return $this->success($str);
    }

    public function test()
    {
        $file = $this->request->file('file');
        $import = new ImportExcelTool();
        return $this->success($import->getData($file));
    }

}
